#! /usr/bin/python
# A Python script that simulates rolling two dice a few times.

# Module for dealing with random numbers.
import random


# Number of times to roll the dice.
DICE_ROLLS = 5

SIXES = 0

counter = 0

print "Rolling the dice " + str(DICE_ROLLS) + " times"

while SIXES == 0:
        counter = counter + 1
	# Simulate rolling two dice.
	dice_1 = random.randint(1, 6)
	dice_2 = random.randint(1, 6)
	print "Rolls:", dice_1, dice_2
        if (dice_1 == 1):
            if (dice_2 == 1):
	        print "Got snake eyes!"
        if (dice_1 == 6):
            if (dice_2 == 6):
	        print "Got double sixes!"
                SIXES = 1

print "Rolled the dice " + str(counter) + " times"
